import instance from '../utils/request'
const getChannels = () => {
  return instance({
    method: 'get',
    url: '/v1_0/channels'
  })
}
/* eslint-disable */
const getarticles = ({ channel_id, timestamp }) => {
  return instance({
    method: 'get',
    url: '/v1_1/articles',
    params: {
      with_top: 0,
      channel_id,
      timestamp
    }
  })
}
export { getChannels, getarticles }
